package com.itheima.service;

import com.github.pagehelper.Page;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    public void add(User user, Integer[]  roleIds);

    public User findByUsername(String username);

  public PageResult findPage(QueryPageBean pageBean) throws Exception;

   public User findById(Integer id);

   public void edit(User user, Integer[] roleIds);

   public Result delete(Integer id);
}
